package cn.edu.bjut.homework.chapter3;

public class ChapterThree {
    public static void main(String[] args) {
        question1();
        question2();
    }

    public static void question1() {
        Date date = new Date(2020, 2, 29);
        System.out.println(date.toString());
        date.tomorrow();
        System.out.println(date.toString());
        System.out.println(date.daysInMonth(2, 2020));
    }

    public static void question2() {
        Ipc ipc = new Ipc("A", 1, "Z", 9999, 99999);
        System.out.println(ipc.toString());

        Ipc ipc2 = new Ipc("G06F 17/30");
        Ipc ipc3 = new Ipc("H01M 10/587");
        System.out.println(ipc2.toString());
        System.out.println(ipc3.toString());
    }
}
